﻿<Window x:Class="VMWareLabWorkflowsDataContracts.VMWareLabDetailsDialogControls.SelectTestSuitesWindow"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
        Title="Select test suites" Height="400" Width="350" ShowInTaskbar="True" WindowStartupLocation="CenterScreen" DataContext="{Binding}" ResizeMode="NoResize">
    <Window.Resources>
        <Style TargetType="TreeViewItem">
            <Setter Property="IsExpanded" Value="True" />
        </Style>
    </Window.Resources>
    <Grid>
        <TreeView Height="308" HorizontalAlignment="Left" Margin="12,12,0,0" Name="treeView1" VerticalAlignment="Top" Width="304" ItemsSource="{Binding VmTestSuites}">
            <TreeView.ItemTemplate>
                <HierarchicalDataTemplate ItemsSource="{Binding TestSuites}">
                    <StackPanel Orientation="Horizontal">
                        <CheckBox
                          Focusable="False" 
                          IsChecked="{Binding IsChecked}" 
                          VerticalAlignment="Center"
                          />
                        <ContentPresenter 
                          Content="{Binding SuiteTitle, Mode=OneTime}" 
                          Margin="2,0"
                          />
                    </StackPanel>
                </HierarchicalDataTemplate>
            </TreeView.ItemTemplate>
        </TreeView>
        <Button Content="Cancel" Height="23" HorizontalAlignment="Left" Margin="241,326,0,0" Name="btnCancel" VerticalAlignment="Top" Width="75" IsCancel="True"/>
        <Button Content="OK" Height="23" HorizontalAlignment="Left" Margin="160,326,0,0" Name="btnOk" VerticalAlignment="Top" Width="75" Click="BtnOkClick" />
    </Grid>
</Window>
